import React from 'react';
import { withRouter } from 'react-router-dom';
import './Topbar.css'
class Navbar extends React.Component {

	constructor(props) {
	  super(props);
	  this.state = {
        username:this.props.username,//用户名
        userimg:this.props.userimg,//头像
        content:this.props.content,//内容
        images:this.props.images,//图片数组
        likenum:this.props.likenum,//点赞数量
        remarknum:this.props.remarknum,//评论数量
        pathname:this.props.location,//
        barname:"",
        selectval:'none',
	  };
	}
    
}